require.config({
  //urlArgs: "v=" + requirejs.s.contexts._.config.config.site.version,
  paths: {
    //-------------自定义
    //'lang': "empty:",
    //'etcommon': 'et-common',
    //'etlayer': 'et-layer',
    //'form': 'require-form',
    //'table': 'require-table',
    //'upload': 'require-upload',
    //-------------jquery
    'jquery': '../libs/jquery/jquery-2.1.4.min',
    'jquery-contextMenu':'../libs/jquery/jquery.contextMenu/jquery.contextMenu.min',
    'jquery.blockUI':'../libs/jquery/jquery.blockUI/jquery.contextMenu.min',
    // 'toastr': '../libs/jquery/jquery-toastr-2.1.4/toastr.min',
    // 'cookie': '../libs/jquery/jquery.cookie-1.5.1',
    // 'layer': '../libs/jquery/jquery-layer-3.1.1/layer',
    // 'validator-core': '../libs/jquery/nice-validator-1.1.4/jquery.validator.min',
    // 'validator-lang': '../libs/jquery/nice-validator-1.1.4/local/zh-CN',
    // 'dragsort': '../libs/jquery/jquery.dragsort-0.5.2',
    // 'drag': '../libs/jquery/jquery.drag.min',
    // 'drop': '../libs/jquery/jquery.drop.min',
    // 'addtabs': '../libs/jquery/jquery.addtabs',
    'slimscroll': '../libs/jquery/jquery-slimscroll/jquery.slimscroll-1.3.8.min',
    // 'sortable': '../libs/jquery/sortable-1.8.4/Sortable.min',
    //'tableexport': '../libs/jquery/jquery-tableExport-1.9.15.min',
    //'jstree': '../libs/jquery/jquery-jstree-3.3.7/jstree.min',
    //'treegrid': '../libs/jquery/jquery-treegrid-0.3.0/js/jquery.treegrid.min',
    //-------------bootstrap
    'bootstrap': '../libs/bootstrap/bootstrap-3.43.6/js/bootstrap.min',
    // 'popper': '../libs/bootstrap/popper/popper-1.12.9.min',
    // 'bootstrap-table': '../libs/bootstrap/bootstrap-table-1.13.5/bootstrap-table',
    // 'bootstrap-table-export': '../libs/bootstrap/bootstrap-table-1.13.5/extensions/export/bootstrap-table-export.min',
    // 'bootstrap-table-mobile': '../libs/bootstrap/bootstrap-table-1.13.5/extensions/mobile/bootstrap-table-mobile.min',
    // 'bootstrap-table-treegrid': '../libs/bootstrap/bootstrap-table-1.13.5/extensions/treegrid/bootstrap-table-treegrid.min',
    // 'bootstrap-table-lang': '../libs/bootstrap/bootstrap-table-1.13.5/locale/bootstrap-table-zh-CN.min',
    // 'bootstrap-datetimepicker': '../libs/bootstrap/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min',
    // 'bootstrap-daterangepicker': '../libs/bootstrap/bootstrap-daterangepicker/daterangepicker',
    // 'bootstrap-select': '../libs/bootstrap/bootstrap-select/dist/js/bootstrap-select.min',//多选插件
    // 'bootstrap-select-lang': '../libs/bootstrap/bootstrap-select/dist/js/i18n/defaults-zh_CN',
    // 'bootstrap-table-commonsearch': '../libs/bootstrap/bootstrap-table-commonsearch',
    // //-------------charts&font
    // 'echarts': '../libs/chart/echarts-4.2.1.min',
    // // 'echarts-theme': 'echarts-theme',
    // //-------------
    // 'plupload': '../libs/plupload/js/plupload.min',
    // 'cxselect': '../libs/fastadmin-cxselect/js/jquery.cxselect',
    // // 'template': '../libs/art-template/dist/template-native',
    // 'selectpage': '../libs/fastadmin-selectpage/selectpage',
    // 'citypicker': '../libs/fastadmin-citypicker/dist/js/city-picker.min',
    // 'citypicker-data': '../libs/fastadmin-citypicker/dist/js/city-picker.data',
  },
  // shim依赖配置
  shim: {
    // 'addons': ['backend'],
    // //-------------jquery
    // 'toastr': ['css!../libs/jquery/jquery-toastr-2.1.4/toastr.min.css'],
    // 'jstree': ['css!../libs/jquery/jquery-jstree-3.3.7/themes/default/style.css',],
    // 'validator-core': ['css!../libs/jquery/nice-validator-1.1.4/jquery.validator.css'],
    // 'layer': ['css!../libs/jquery/jquery-layer-3.1.1/theme/default/layer.css'],
    // 'validator-lang': ['validator-core'],
    // 'tableexport': { deps: ['jquery'], exports: '$.fn.extend' },
    'slimscroll': { deps: ['jquery'], exports: '$.fn.extend' },
    'jquery-contextMenu': { deps: ['jquery'], exports: '$.fn.extend' },
    // 'treegrid': ['css!../libs/jquery/jquery-treegrid-0.3.0/css/jquery.treegrid.css'],
    // //-------------bootstrap
     'bootstrap': ['jquery'],
    // 'bootstrap-table': { deps: ['bootstrap', 'css!../libs/bootstrap/bootstrap-table-1.13.5/bootstrap-table.min.css'], exports: '$.fn.bootstrapTable' },
    // 'bootstrap-table-lang': { deps: ['bootstrap-table'], exports: '$.fn.bootstrapTable.defaults' },
    // 'bootstrap-table-export': { deps: ['bootstrap-table', 'tableexport'], exports: '$.fn.bootstrapTable.defaults' },
    // 'bootstrap-table-mobile': { deps: ['bootstrap-table'], exports: '$.fn.bootstrapTable.defaults' },
    // //参考:https://github.com/lslvxy/bootstrapTable-treeView   https://www.jianshu.com/p/f090115c7f8f
    // 'bootstrap-table-treegrid': { deps: ['bootstrap-table'], exports: '$.fn.bootstrapTable.defaults' },
    // 'bootstrap-table-advancedsearch': { deps: ['bootstrap-table'], exports: '$.fn.bootstrapTable.defaults' },
    // 'bootstrap-table-commonsearch': { deps: ['bootstrap-table'], exports: '$.fn.bootstrapTable.defaults' },
    // //---
    // 'bootstrap-datetimepicker': ['moment/locale/zh-cn',      //            'css!../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
    // ],
    // //        'bootstrap-select': ['css!../libs/bootstrap-select/dist/css/bootstrap-select.min.css',],
    // 'bootstrap-select-lang': ['bootstrap-select'],
    // 'plupload': { deps: ['../libs/plupload/js/moxie.min'], exports: "plupload" },
    // //        'selectpage': ['css!../libs/fastadmin-selectpage/selectpage.css'],
    // 'citypicker': ['citypicker-data', 'css!../libs/fastadmin-citypicker/dist/css/city-picker.css']
  },
  //baseUrl: requirejs.s.contexts._.config.config.site.cdnurl + '/assets/js/', //资源基础路径
  baseUrl:'/js/', //资源基础路径
  map: {
    // '*': {
    //   'css': '../libs/require/require-css/css.min',
    //   'popper.js': 'popper'
    // }
  },
  waitSeconds: 30,
  charset: 'utf-8' // 文件编码
});

require(['jquery'], function ($) {

  alert("aa");
   var Config = requirejs.s.contexts._.config.config;//初始配置

   window.Config = Config;//将Config暴露到全局
  // window.et = etcommon;
  // window.__ = etcommon.lang;//将语言暴露到全局
  // window.Layer = Layer;//将Layer暴露到全局中去
  // window.Toastr = Toastr;//将Toastr暴露到全局中去

  // // 配置语言包的路径
  // var paths = {};
  // paths['lang'] = Config.moduleurl + '/ajax/lang?callback=define&controllername=' + Config.controllername;
  // // 避免目录冲突
  // paths['backend/'] = 'backend/';
  // require.config({ paths: paths });

  // 初始化
  // $(function () {
  //   require(['etcommon'], function (etcommon) {
  //     require(['backend', 'backend-init', 'addons'], function (Backend, undefined, Addons) {
  //       //加载相应模块
  //       if (Config.jsname) {
  //         require([Config.jsname], function (Controller) {
  //           Controller[Config.actionname] != undefined && Controller[Config.actionname]();
  //         }, function (e) {
  //           console.error(e);
  //           // 这里可捕获模块加载的错误
  //         });
  //       }
  //     });
  //   });
  // });
  //
});
